package miage.gestioncabinet.coredb;

import javax.persistence.*;

import miage.gestioncabinet.api.Medecin;

@Entity
@Table(name="medecin")
@NamedQueries({
	@NamedQuery(name="rechercherMedecins", query="SELECT m FROM MedecinDB m"),
	@NamedQuery(name="getMedecin", query="SELECT m FROM MedecinDB m WHERE m.personne.id = :medecin")
})
public class MedecinDB extends UtilisateurDB implements Medecin{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1326156225744497135L;
	@Column
	private String rpps;
	
	@OneToOne
	private PersonneDB personne;


	@Override
	public String getRPPS() {
		return this.rpps;
	}

}
